package com.jvyou.mybatis.spring.demo.mapper;

import com.jvyou.mybatis.annotations.CacheNamespace;
import com.jvyou.mybatis.annotations.Param;
import com.jvyou.mybatis.annotations.Select;
import com.jvyou.mybatis.spring.demo.entity.User;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/4/25 20:12
 * @Description
 */
@CacheNamespace
public interface UserMapper {

    @Select("Select * from user where id = #{id}")
    User findById(@Param("id") Long id);


}
